package se.hrbustrc.hlgshopping.service;

import se.hrbustrc.hlgshopping.dto.LoginRequest;
import se.hrbustrc.hlgshopping.dto.LoginResponse;
import se.hrbustrc.hlgshopping.entity.User;

public interface UserService {
    //添加用户
    void addUser(User user);
    //修改用户
    void updateUser(User user);
    //删除用户
    void deleteUser(Integer id);
    //查询用户
    User getUserById(int id);
    User getUserByCode(String userCode);
    public LoginResponse login(LoginRequest loginRequest);
    public boolean logout(String token);
    public boolean validateToken(String token);
    public User getUserByUsername(String username);
}
